-- GENERATED SPELL FOR [Cobalt Mageweaver] --


function spell0_7437(pUnit, Event) --@Frost Armor,n/a--
pUnit:FullCastSpellOnTarget(15784,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7437', 609, 1)
end

function spell1_7437(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15043,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7437', 7000, 1)
end

function Sorts_7437(pUnit, Event)
local choix_sorts_7437 = math.random(0, 1)
if choix_sorts_7437 == 0 then
pUnit:RegisterEvent('spell0_7437', 1, 1)
end
if choix_sorts_7437 == 1 then
pUnit:RegisterEvent('spell1_7437', 1, 1)
end
end

function mob7437_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7437', math.random(1500, 3000), 1)
end

function mob7437_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7437_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7437_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7437, 1, 'mob7437_Action')
RegisterUnitEvent(7437, 2, 'mob7437_Leave')
RegisterUnitEvent(7437, 3, 'mob7437_Kill')
RegisterUnitEvent(7437, 4, 'mob7437_Die')
